package com.kdweibo.demo.activities;

import java.util.List;

import kdweibo4j.Count;
import kdweibo4j.Paging;
import kdweibo4j.Status;
import kdweibo4j.Weibo;
import kdweibo4j.WeiboException;
import kdweibo4j.http.AccessToken;


public class TestCount {

	public void getFriendsTimeline(){
		String token = "";
		String tokenSecret = "";
		String network = "kdweibo.cn";
		String groupID = "4f705c1d24acec7da09e2b03";
		String msg = "from api demo test.";
		String userId = "4f705aa524ac5d300f23d4d3";
		
		Weibo weibo = AuthConstant.getInstance().getWeibo();
		weibo.setNetwork(network);
		weibo.setOAuthConsumer(Weibo.CONSUMER_KEY, Weibo.CONSUMER_SECRET);
		weibo.setOAuthAccessToken(new AccessToken(token, tokenSecret));
		Paging page = new Paging();
		String ids = "4f7263c924acaaf8ad5aa46e,4f7263c724acaaf8ad5aa468";
		try {
			List<Count> counts = weibo.getCounts(ids);
		} catch (WeiboException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new TestCount().getFriendsTimeline();
	}

	
}
